<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: Elgamal Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_elgamal.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_elgamal-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Elgamal Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="elgamal_8h_source.html">elgamal.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a431bd17af11c5f20f5ecb5c9f62d6cd8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a431bd17af11c5f20f5ecb5c9f62d6cd8">Elgamal</a> (<a class="el" href="class_net_i_o.html">NetIO</a> *<a class="el" href="class_elgamal.html#aacb982ec83335859aaba1083b27a5d39">io</a>, int <a class="el" href="class_elgamal.html#a2dd1b6916d3a82e0715bf246c6d67951">party</a>, int <a class="el" href="class_elgamal.html#aa9ad303c463591e19d5f9c49c9902d73">length</a>)</td></tr>
<tr class="separator:a431bd17af11c5f20f5ecb5c9f62d6cd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a764d872d10a6da09155bc9f572764cef"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a764d872d10a6da09155bc9f572764cef">setup_omega</a> ()</td></tr>
<tr class="separator:a764d872d10a6da09155bc9f572764cef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dbc7d449a0efce1cfee1f29e725c600"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a9dbc7d449a0efce1cfee1f29e725c600">~Elgamal</a> ()</td></tr>
<tr class="separator:a9dbc7d449a0efce1cfee1f29e725c600"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3baff0f244c800c28c0d41205020f856"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a3baff0f244c800c28c0d41205020f856">commit</a> (bn_t <a class="el" href="class_elgamal.html#aef94c47eefd90e9db3f3f04b8286746e">r</a>, <a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> <a class="el" href="class_elgamal.html#ab717d9525fad5273a6da9b90b6ece97a">com</a>, bool b, <a class="el" href="class_p_r_g.html">PRG</a> *<a class="el" href="class_elgamal.html#a19db18c8fc63916bdd8674f58f4d3261">prg</a>)</td></tr>
<tr class="separator:a3baff0f244c800c28c0d41205020f856"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15681113671852465381606f5b9c225e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a15681113671852465381606f5b9c225e">check_eq</a> (<a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> new_com, <a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> old_com, bn_t r_diff)</td></tr>
<tr class="separator:a15681113671852465381606f5b9c225e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1ce2f679f95775c8911106f9010d16d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#aa1ce2f679f95775c8911106f9010d16d">send</a> (<a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> *X)</td></tr>
<tr class="separator:aa1ce2f679f95775c8911106f9010d16d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5d602af75afbd1f1e0ff8df3698a73d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#aa5d602af75afbd1f1e0ff8df3698a73d">open</a> ()</td></tr>
<tr class="separator:aa5d602af75afbd1f1e0ff8df3698a73d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa329d14d0e48d457dae7032774774bc5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#aa329d14d0e48d457dae7032774774bc5">recv</a> (eb_t *X, bool *b)</td></tr>
<tr class="separator:aa329d14d0e48d457dae7032774774bc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cab624dc215c22a34b52729b2d88e3b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a6cab624dc215c22a34b52729b2d88e3b">open</a> (<a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> *Xs, bool *b, eb_t *X)</td></tr>
<tr class="separator:a6cab624dc215c22a34b52729b2d88e3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab31d3c6a27b2ee06ddad7d6a6679f66d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#ab31d3c6a27b2ee06ddad7d6a6679f66d">recovery</a> (bool *b, bn_t omega)</td></tr>
<tr class="separator:ab31d3c6a27b2ee06ddad7d6a6679f66d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aacb982ec83335859aaba1083b27a5d39"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_net_i_o.html">NetIO</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#aacb982ec83335859aaba1083b27a5d39">io</a></td></tr>
<tr class="separator:aacb982ec83335859aaba1083b27a5d39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a869177e41b7d6fbf8af2563cdcce37"><td class="memItemLeft" align="right" valign="top">eb_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a0a869177e41b7d6fbf8af2563cdcce37">g</a></td></tr>
<tr class="separator:a0a869177e41b7d6fbf8af2563cdcce37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cd0d1545b1b46f572819d3c76ca5543"><td class="memItemLeft" align="right" valign="top">eb_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a9cd0d1545b1b46f572819d3c76ca5543">h</a></td></tr>
<tr class="separator:a9cd0d1545b1b46f572819d3c76ca5543"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54c6642d667c870549c4c86be26488cf"><td class="memItemLeft" align="right" valign="top">eb_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a54c6642d667c870549c4c86be26488cf">hTbl</a> [RELIC_EB_TABLE_MAX]</td></tr>
<tr class="separator:a54c6642d667c870549c4c86be26488cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cd3c8af11badf57b86f8c21614dcd4c"><td class="memItemLeft" align="right" valign="top">const eb_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a0cd3c8af11badf57b86f8c21614dcd4c">gTbl</a></td></tr>
<tr class="separator:a0cd3c8af11badf57b86f8c21614dcd4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebfda62a019361329a552c1be8810a24"><td class="memItemLeft" align="right" valign="top">bn_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#aebfda62a019361329a552c1be8810a24">w</a></td></tr>
<tr class="separator:aebfda62a019361329a552c1be8810a24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb6046d3bbe412baa226e6d8ade91b14"><td class="memItemLeft" align="right" valign="top">bn_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#aeb6046d3bbe412baa226e6d8ade91b14">q</a></td></tr>
<tr class="separator:aeb6046d3bbe412baa226e6d8ade91b14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2dd1b6916d3a82e0715bf246c6d67951"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a2dd1b6916d3a82e0715bf246c6d67951">party</a></td></tr>
<tr class="separator:a2dd1b6916d3a82e0715bf246c6d67951"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19db18c8fc63916bdd8674f58f4d3261"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_p_r_g.html">PRG</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a19db18c8fc63916bdd8674f58f4d3261">prg</a></td></tr>
<tr class="separator:a19db18c8fc63916bdd8674f58f4d3261"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9ad303c463591e19d5f9c49c9902d73"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#aa9ad303c463591e19d5f9c49c9902d73">length</a></td></tr>
<tr class="separator:aa9ad303c463591e19d5f9c49c9902d73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab717d9525fad5273a6da9b90b6ece97a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#ab717d9525fad5273a6da9b90b6ece97a">com</a> = nullptr</td></tr>
<tr class="separator:ab717d9525fad5273a6da9b90b6ece97a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e8cabc1f1bbd6fb2328f80964d599de"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a5e8cabc1f1bbd6fb2328f80964d599de">nA</a> = nullptr</td></tr>
<tr class="separator:a5e8cabc1f1bbd6fb2328f80964d599de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46de1e0f3a77d4fdad6ce61a33ceb908"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a46de1e0f3a77d4fdad6ce61a33ceb908">nB</a> = nullptr</td></tr>
<tr class="separator:a46de1e0f3a77d4fdad6ce61a33ceb908"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd3af6c1ef54532a534329fa60aff7cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utils__ec_8h.html#a09cbcd1b9548176fce4883fa31bbd17f">bn_tpl</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#acd3af6c1ef54532a534329fa60aff7cb">elgl_s</a> = nullptr</td></tr>
<tr class="separator:acd3af6c1ef54532a534329fa60aff7cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b6e7e86d9d72f306bfb5581ed0cb102"><td class="memItemLeft" align="right" valign="top"><a class="el" href="utils__ec_8h.html#a09cbcd1b9548176fce4883fa31bbd17f">bn_tpl</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#a8b6e7e86d9d72f306bfb5581ed0cb102">elgl_t</a> = nullptr</td></tr>
<tr class="separator:a8b6e7e86d9d72f306bfb5581ed0cb102"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef94c47eefd90e9db3f3f04b8286746e"><td class="memItemLeft" align="right" valign="top">bn_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_elgamal.html#aef94c47eefd90e9db3f3f04b8286746e">r</a> = nullptr</td></tr>
<tr class="separator:aef94c47eefd90e9db3f3f04b8286746e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a431bd17af11c5f20f5ecb5c9f62d6cd8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a431bd17af11c5f20f5ecb5c9f62d6cd8">&sect;&nbsp;</a></span>Elgamal()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Elgamal::Elgamal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_net_i_o.html">NetIO</a> *&#160;</td>
          <td class="paramname"><em>io</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>party</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a9dbc7d449a0efce1cfee1f29e725c600"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9dbc7d449a0efce1cfee1f29e725c600">&sect;&nbsp;</a></span>~Elgamal()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Elgamal::~Elgamal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a15681113671852465381606f5b9c225e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a15681113671852465381606f5b9c225e">&sect;&nbsp;</a></span>check_eq()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Elgamal::check_eq </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a>&#160;</td>
          <td class="paramname"><em>new_com</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a>&#160;</td>
          <td class="paramname"><em>old_com</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bn_t&#160;</td>
          <td class="paramname"><em>r_diff</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3baff0f244c800c28c0d41205020f856"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3baff0f244c800c28c0d41205020f856">&sect;&nbsp;</a></span>commit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Elgamal::commit </td>
          <td>(</td>
          <td class="paramtype">bn_t&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a>&#160;</td>
          <td class="paramname"><em>com</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_p_r_g.html">PRG</a> *&#160;</td>
          <td class="paramname"><em>prg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa5d602af75afbd1f1e0ff8df3698a73d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5d602af75afbd1f1e0ff8df3698a73d">&sect;&nbsp;</a></span>open() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Elgamal::open </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a6cab624dc215c22a34b52729b2d88e3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cab624dc215c22a34b52729b2d88e3b">&sect;&nbsp;</a></span>open() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Elgamal::open </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> *&#160;</td>
          <td class="paramname"><em>Xs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">eb_t *&#160;</td>
          <td class="paramname"><em>X</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab31d3c6a27b2ee06ddad7d6a6679f66d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab31d3c6a27b2ee06ddad7d6a6679f66d">&sect;&nbsp;</a></span>recovery()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Elgamal::recovery </td>
          <td>(</td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bn_t&#160;</td>
          <td class="paramname"><em>omega</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa329d14d0e48d457dae7032774774bc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa329d14d0e48d457dae7032774774bc5">&sect;&nbsp;</a></span>recv()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Elgamal::recv </td>
          <td>(</td>
          <td class="paramtype">eb_t *&#160;</td>
          <td class="paramname"><em>X</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool *&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa1ce2f679f95775c8911106f9010d16d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1ce2f679f95775c8911106f9010d16d">&sect;&nbsp;</a></span>send()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Elgamal::send </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> *&#160;</td>
          <td class="paramname"><em>X</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a764d872d10a6da09155bc9f572764cef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a764d872d10a6da09155bc9f572764cef">&sect;&nbsp;</a></span>setup_omega()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool Elgamal::setup_omega </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab717d9525fad5273a6da9b90b6ece97a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab717d9525fad5273a6da9b90b6ece97a">&sect;&nbsp;</a></span>com</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a>* Elgamal::com = nullptr</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="acd3af6c1ef54532a534329fa60aff7cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd3af6c1ef54532a534329fa60aff7cb">&sect;&nbsp;</a></span>elgl_s</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utils__ec_8h.html#a09cbcd1b9548176fce4883fa31bbd17f">bn_tpl</a>* Elgamal::elgl_s = nullptr</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8b6e7e86d9d72f306bfb5581ed0cb102"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b6e7e86d9d72f306bfb5581ed0cb102">&sect;&nbsp;</a></span>elgl_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utils__ec_8h.html#a09cbcd1b9548176fce4883fa31bbd17f">bn_tpl</a> * Elgamal::elgl_t = nullptr</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0a869177e41b7d6fbf8af2563cdcce37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a869177e41b7d6fbf8af2563cdcce37">&sect;&nbsp;</a></span>g</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">eb_t Elgamal::g</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0cd3c8af11badf57b86f8c21614dcd4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cd3c8af11badf57b86f8c21614dcd4c">&sect;&nbsp;</a></span>gTbl</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const eb_t* Elgamal::gTbl</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9cd0d1545b1b46f572819d3c76ca5543"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9cd0d1545b1b46f572819d3c76ca5543">&sect;&nbsp;</a></span>h</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">eb_t Elgamal::h</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a54c6642d667c870549c4c86be26488cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54c6642d667c870549c4c86be26488cf">&sect;&nbsp;</a></span>hTbl</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">eb_t Elgamal::hTbl[RELIC_EB_TABLE_MAX]</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aacb982ec83335859aaba1083b27a5d39"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacb982ec83335859aaba1083b27a5d39">&sect;&nbsp;</a></span>io</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_net_i_o.html">NetIO</a>* Elgamal::io</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa9ad303c463591e19d5f9c49c9902d73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9ad303c463591e19d5f9c49c9902d73">&sect;&nbsp;</a></span>length</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Elgamal::length</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a5e8cabc1f1bbd6fb2328f80964d599de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e8cabc1f1bbd6fb2328f80964d599de">&sect;&nbsp;</a></span>nA</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> * Elgamal::nA = nullptr</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a46de1e0f3a77d4fdad6ce61a33ceb908"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46de1e0f3a77d4fdad6ce61a33ceb908">&sect;&nbsp;</a></span>nB</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="utils__ec_8h.html#afcde481e82d4efeed62b66b9f12ccbd9">eb_tpl</a> * Elgamal::nB = nullptr</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2dd1b6916d3a82e0715bf246c6d67951"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2dd1b6916d3a82e0715bf246c6d67951">&sect;&nbsp;</a></span>party</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Elgamal::party</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a19db18c8fc63916bdd8674f58f4d3261"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19db18c8fc63916bdd8674f58f4d3261">&sect;&nbsp;</a></span>prg</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_p_r_g.html">PRG</a> Elgamal::prg</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aeb6046d3bbe412baa226e6d8ade91b14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb6046d3bbe412baa226e6d8ade91b14">&sect;&nbsp;</a></span>q</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bn_t Elgamal::q</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aef94c47eefd90e9db3f3f04b8286746e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef94c47eefd90e9db3f3f04b8286746e">&sect;&nbsp;</a></span>r</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bn_t* Elgamal::r = nullptr</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aebfda62a019361329a552c1be8810a24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebfda62a019361329a552c1be8810a24">&sect;&nbsp;</a></span>w</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bn_t Elgamal::w</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/wangxiao/git/emp-toolkit/emp-input-validity/input-validity/<a class="el" href="elgamal_8h_source.html">elgamal.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_elgamal.html">Elgamal</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
